package cn.wenlihelp.service.impl;

import cn.wenlihelp.bean.Account;
import cn.wenlihelp.service.AccountService;
import cn.wenlihelp.service.LoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class LoginServiceImpl implements LoginService {
    @Resource
    private AccountService accountService;
    @Override
    public Account login(Account account) {
        return accountService.findByUserNameAndPassword(account.getUserName(),account.getUserPassword());
    }
}
